$(".s-name").click(function () {
    var categoryID=$(this).attr("data-id");
    window.location.href = "https://zlgpy.com/cpzx/cpxl.html?id=" +categoryID;
});
initSwiper();

function initSwiper() {
    var galleryTop = new Swiper('.gallery-top', {

    });
    var galleryThumbs = new Swiper('.gallery-thumbs', {
        slideToClickedSlide:true,
        centeredSlides : true,
        slidesPerView : 4,
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        control: [galleryTop,galleryThumbs],
        inverse: true,
        by: 'slide'
    });
    var swiperPg = new Swiper('.productMobile-swiper', {
        pagination: '.swiper-pagination',
        paginationClickable: true,
        autoplay:1500
    });


}